package com.gaber.service.impl;

import com.gaber.dao.UserDao;
import com.gaber.service.UserService;

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

public class UserServiceImpl implements UserService {



    public void show() {
        System.out.println(userDao);
    }

    private UserDao userDao;

    //Beanfactory去调用该方法 从容器中获得userDao设置到此处
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
        System.out.println("Beanfactory去调用该方法 从容器中获得userDao设置到此处："+userDao);
    }
}
